package bog

class Course {
    /*************************************/
    /** relationships                   **/
    /*************************************/
    static hasMany = [threads: Thread]
    /*************************************/

    String name
    String fullName

    static constraints = {
        name(blank: false)
        fullName(blank: false)
    }

    public String toString() {
        return name + " - " + fullName
    }
}
